package model.towers;

import java.util.concurrent.CopyOnWriteArrayList;

import model.enemies.IEnemy;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import com.example.towerdefence.R;

import controller.GameBoard;

public class LaserTower extends TowerSprite {

	public static final Bitmap LASER_BULLET = BitmapFactory.decodeResource(
			GameBoard.getRes(), R.drawable.laser_bullet);
	private static final Bitmap LASER_TOWER = BitmapFactory.decodeResource(
			GameBoard.getRes(), R.drawable.tower2spritesheet);

	public LaserTower(float x, float y, int price,
			float range, int shootingSpeed, int dmg,
			CopyOnWriteArrayList<IEnemy> enemy) {
		setBitmapImage(LASER_TOWER);
		setShootingSpeed(shootingSpeed);
		setPrice(price);
		setRange(range);
		setDamage(dmg);
		setxAxisPoint(x);
		setyAxisPoint(y);
		setEnemy(enemy);

		this.setStartShootingThread(new StartShootingThread(this,
				getEnemy()));
		new Thread(this.getStartShootingThread()).start();

	}
}
